<template>
    <div>
        <p>平台公告</p>
        <div id="join">
            <div id="btn">最新入驻</div>
            <span>. 恭喜 [xx公司] 成功入驻</span>
        </div>
        
        <div id="title">
            <span class="logo"></span>
            <span>品质组织</span>
            <span>更多 ></span>
        </div>

        <div id="org">
            <div class="company" v-for="(c, index) in companys" :key="index">
                <img src="https://picsum.photos/50/50" alt="com">
                <span>{{ c }}</span>
            </div>
        </div>
    </div>
</template>


<script>

    export default {
        name: "", // 指定组件名
        data: function () {
            return {
                companys: [
                    "中山市公司1",
                    "中山市公司2",
                    "中山市公司3",
                    "中山市公司4",
                ]
            }
        }
    }

</script>

<style lang="less" scoped>
    @themeColor: rgb(54,117,28);
    p {
        margin: 10px 0;
        color: @themeColor;
        background-color: #fff;
        font-weight: 600;
        padding: 10px;
    }

    #join {
        width: 100vw;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 14px;
        background-color: #fff;
        margin-bottom: 10px;

        #btn {
            width: 20vw;
            height: 30px;
            background-color: @themeColor;
            color: #fff;
            border-radius: 6px;
            text-align: center;
            line-height: 30px;
            margin: 0 20px;
        }

        span {
            font-weight: 500;
        }
    }

    #title {
        background-color: #fff;
        color: orange;
        font-weight: 400;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(211, 206, 206, .5);
        width: 100vw;
        height: 25px;
        

        span:last-child {
            margin-left: auto;
        }

        .logo {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: orange;
        }
    }

    #org {
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex: 1 1 auto;

        

        .company {
            width: 25vw;
            height: 25vw;
            margin: 0 5px;
            text-align: center;

            img {
                width: 100%;
                height: 80%;
            }

            span {
                color: #000;
                font-size: 12px;
                font-weight: 400;
            }
        }
    }
    
</style>